﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YmtAuth.Domain.Model.Safe;
using YmtAuth.Domain.Repository.MySql;
using YmtAuth.Dto;

namespace YmtAuth.Domain.Repository
{
    public interface IDualSecurityRepository : IMySQLRepository<DualSecurity>
    {
        /// <summary>
        /// 设置双重验证
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="enable"></param>
        /// <returns></returns>
        ResponseData<bool> SetDualSecurity(int userId, bool enable);

        /// <summary>
        /// 查询双重验证
        /// </summary>
        /// <param name="userId"></param>
        /// <returns></returns>
        DualSecurity GetDualSecurityResult(int userId);
    }
}
